FMOD II "easy-to-use" programmable textfile modificator ____________________________________________________________________________ Hi, how are you? Have you ever been in a situation where you needed to edit several textfiles and changing in all of them the same lines? I bet you did! Try to remember back, what did you do? I guess most of you would have done it with a regular editor. Isn't that too complicated? Look, I was having just the same problem some months ago. I needed to modify our standard AUTOEXEC.BAT and SYSTEM.INI file from about 500 laptop computers! I wasn't ever thinking of writing a wierd batchfile or whatever to solve that problem. So I started to develop this FMOD (FileMODificator). ____________________________________________________________________________ Cool, it's shareware I don't want to loose a lot of words about shareware. This program is shareware, you may spread it in the original form as much as you want. If you like it and decide to use it, please don't forget the nice programmer (that'll be me) and send him $20 or 25 swiss francs. In return you'll get the latest FMOD. The address is at the end of this text. ____________________________________________________________________________ The Wide Range Of Possibilities FMOD can do a lot of useful things with any ASCII textfile, let's have a quick overview: - Insert an ASCII textfile at a certain position in the sourcefile - Replace textstrings with others - Delete a value of lines starting at a specified position - Delete INI [xxx] sections - Generate a report of all INI sections of a certain file ____________________________________________________________________________ How To Use It To run FMOD, you'll need to start the program adding two parameters. The format at the DOS prompt is as followed: FMOD.EXE COMMANDS.MOD FILE.EXT The first parameter specifies the file with the commands. The format will be explained in the next chapter. The next and by now the last parameter is the name of the ASCII file to be edited. So it's a quite simple thing. You may add >NUL to get less output to the screen. ____________________________________________________________________________ The Format Of The Commandsfile As described above, there are several functions that are very useful to modify any textfile. I hope it's the easiest way to explain if I show you an example of such a file using all functions and describing them afterwards. --------- ASCII Editor, file: COMMANDS.MOD ------------------- - - - R Hello$Welcome - - I C:\CONFIG.SYS$Here - - D Cool$4 - - S [386Enh]$0 - - L C:\LIST.TXT$0 - - - -->EOF<------------------------------------------------------- R Replaces all "Hello" with "Welcome" I Inserts the file C:\CONFIG.SYS after the string "Here" D Deletes 4 lines starting at "cool" S Deletes the whole section [386Enh], 0 is a dummy and has to be there L Generates a list of all INI sections in the file C:\LIST.TXT, 0 is a dummy and has to be there The character check is NOT case sensitive. ____________________________________________________________________________ Informations And Limitations There are almost no limitations, well in fact just a few to increase easiness: Length of the file to be edited: NO LIMIT Length of the file to insert: 200 LINES WITH 255 CHARS EACH Length of the commandsfile: 15 COMMANDS Shareware limitations: NONE Speed on a 386-40 / all commands processed in a 20KB file: 2 SECONDS ____________________________________________________________________________ Future View - The possibility to comment and uncomment any INI section - Insert a textfile at the end or the top - Execute a command directly as parameter - Check case sensitivity on/off ____________________________________________________________________________ Attention! This program was successfully tested a lot of times. I cannot and I do not guarantee proper operation. Use at your OWN risk! ____________________________________________________________________________ At The End Of A Readmefile Please don't forget to register your version. This useful tool costs you only a smile and 20 US$ or 25 swiss francs. Reto Koch Pfaffensteinstr. 49 CH-8118 Pfaffhausen Switzerland Post Account: 80-38082-0 Send your suggestions and impressions also to the above address. -- (C) 1994 by Reto Koch ---------------------------------------------------